import java.util.LinkedList;
import java.util.List;
import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-08-22
 * Time: 17:14
 */
public class Test {
    public static void main(String[] args) {
        LinkedList<Integer> stack = new LinkedList<>();
        stack.push(12);
        stack.push(23);
        stack.push(34);
        stack.push(45);
        System.out.println(stack);
    }

    public static void main2(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(12);
        myStack.push(23);
        myStack.push(34);
        myStack.push(45);

        System.out.println(myStack.pop());
        System.out.println(myStack.peek());
    }

    public static void main1(String[] args) {
        Stack<Integer> stack = new Stack<>();
    }

}
